public class FADepartment implements Department {
    @Override
    public void visit(FulltimeEmployee employee) {
        double salary = employee.calculateSalary();
        System.out.println("财务部: 全职工资为" + salary);

    }

    @Override
    public void visit(ParttimeEmployee employee) {
        double salary = employee.calculateSalary();
        System.out.println("财务部: 兼职工资为 " + salary);

    }
}